package com.cskaoyan.javase.oop3._1interface._5extend;

import jdk.nashorn.internal.objects.NativeNumber;

/**
 *
 * @since 10:41
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        test(new A());
    }

    public static void test(IA a) {
    }

    public static BaseA test() {
        return new A();
    }
}

interface IA {
}

abstract class BaseA {
}

class A extends BaseA implements IA {
}

class Father {
    BaseA test() {
        return null;
    }
}

class Son extends Father {
    @Override
    A test() {
        return null;
    }
}
